package com.pug.controller;

import com.pug.domain.KssOrder;
import com.pug.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author panghu
 * @version 1.0.0
 * @createTime 2022年08月12日 23:39:00
 * @Description
 */
@RestController
public class OrderController {

    @Autowired
    private OrderService orderService;

    @GetMapping("/getorder/{userId}")
    public KssOrder getUser(@PathVariable("userId") Long userId) {
        return orderService.getOrderInfo(userId);
    }

}
